package net.apexes.demo.codegen.querydsl.entity;


/**
 * Template. the database table "TEMPLATE"
 */
public class Template extends net.apexes.demo.codegen.entity.base.EntityBase {

    private static final long serialVersionUID = 1L;

    /**
     * NAME
     */
    private String name;

    /**
     * DESCRIPTION
     */
    private String description;

    /**
     * DEPEND_TEMPLATE_ID
     */
    private String dependTemplateId;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDependTemplateId() {
        return dependTemplateId;
    }

    public void setDependTemplateId(String dependTemplateId) {
        this.dependTemplateId = dependTemplateId;
    }

    public void cloneFrom(Template from) {
        this.name = from.name;
        this.description = from.description;
        this.dependTemplateId = from.dependTemplateId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(super.toString());
        sb.append(",name=").append(name);
        sb.append(",description=").append(description);
        sb.append(",dependTemplateId=").append(dependTemplateId);
        return sb.toString();
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

}

